import Vue from 'vue'
import VueRouter from 'vue-router'
import indexView from "../views/IndexView.vue";
import Vant from "vant";
import XiaoxiView from "../views/XiaoxiView.vue";
import WodeXiew from "../views/WodeXiew.vue";
import Bjgd from "../views/bjgl/Bjgd.vue";
import Consume from "../views/energy/Consume.vue";
import WorkOrderView from "../views/work_order/WorkOrderView.vue";
import WorkOrderXQView from "../views/work_order/WorkOrderXQView.vue";
import WorkOrderXQ2View from "../views/work_order/WorkOrderXQ2View.vue";
import WorkOrderXQ3View from "../views/work_order/WorkOrderXQ3View.vue";
import analysis from "../views/energy/analysis.vue";
import WorkOrederWBXView from "../views/work_order/WorkOrederWBXView.vue";
import WorkOrderXJXView from "../views/work_order/WorkOrderXJXView.vue";

// import { quillEditor } from 'vue-quill-editor';
// import 'quill/dist/quill.core.css';
// import 'quill/dist/quill.snow.css';
// import 'quill/dist/quill.bubble.css';
// Vue.use(quillEditor);

Vue.use(VueRouter);
Vue.use(Vant);


const routes = [
  {
    path: '/',
    name: 'index',
    component: indexView
  },

  {
    path: '/xiaoxi',
    name: 'xiaoxi',
    component: XiaoxiView
  },
  {
    path: '/wode',
    name: 'wode',
    component: WodeXiew
  },
  {
    path: '/bjgd',
    name: 'bjgd',
    component: Bjgd
  },
  {
    path: '/consume',
    name: 'consume',
    component: Consume
  },
  {
    path: '/work_order',
    name: 'work_order',
    component: WorkOrderView
  },
  {
    path: '/work_order_xq',
    name: 'work_order_xq',
    component: WorkOrderXQView
  },
  {
    path: '/work_order_xq2',
    name: 'work_order_xq2',
    component: WorkOrderXQ2View
  },
  {
    path: '/work_order_xq3',
    name: 'work_order_xq3',
    component: WorkOrderXQ3View
  },
  {
    path: '/work_order_wbx',
    name: 'work_order_wbx',
    component: WorkOrederWBXView
  },
  {
    path: '/work_order_xjx',
    name: 'work_order_xjx',
    component: WorkOrderXJXView
  },
  {
    path: '/analysis',
    name: 'analysis',
    component: analysis
  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = new VueRouter({
  routes
})

export default router
